package com.gagakuai.bpm.domian.events;

import com.gagakuai.bpm.domian.entity.BpmDeadMessageLog;
import lombok.extern.slf4j.Slf4j;

/*
 * @program: bpm_server
 * @description: 业务系统回调事件
 * @author: houhong
 * @create: 2022-07-14 13:38
 */
@Slf4j
public class BusinessSysCallBackEvent extends BaseEvent<BusinessSysCallBackEvent.BusinessSysCallBackEventData> {


    public BusinessSysCallBackEvent(Object source) {
        super(source);
        log.info("#创建业务系统回调事件#");

        super.setEventData((BusinessSysCallBackEventData) source);
    }

    /*
     * 发布业务系统回调事件
     */
    public static class BusinessSysCallBackEventData {


        /*
         * bpm业务回调数据
         */
        private BpmDeadMessageLog bpmDeadMessageLog;


        public BpmDeadMessageLog getBpmDeadMessageLog() {
            return bpmDeadMessageLog;
        }

        public void setBpmDeadMessageLog(BpmDeadMessageLog bpmDeadMessageLog) {
            this.bpmDeadMessageLog = bpmDeadMessageLog;
        }
    }
}